//
//  QLPropertyUtils.h
//  QLBaobaoPlayerIos
//
//  Created by anan on 13-4-3.
//  Copyright (c) 2013年 baobaodev_anan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSDate+QL.h"
#import "NSMutableDictionary+QL.h"

/**
 *  键值对保存工具
 */
@interface QLPropertyUtils : NSObject

/**
 *  获取保存路径
 *
 *  @param fileName
 *
 *  @return
 */
+(NSString *)getPath:(NSString*)fileName;

/**
 *  获取字符串
 *
 *  @param key
 *  @param defaultValue
 *
 *  @return
 */
+(NSString *)getStringByKey:(NSString *)key defaultValue:(NSString *)defaultValue;

/**
 *  获取布朗值
 *
 *  @param key
 *  @param defaultValue
 *
 *  @return
 */
+(BOOL)getBoolByKey:(NSString *)key defaultValue:(BOOL)defaultValue;

/**
 *  获取整形值
 *
 *  @param key
 *  @param defaultValue
 *
 *  @return
 */
+(int)getIntByKey:(NSString *)key defaultValue:(int)defaultValue;

/**
 *  获取双精度值
 *
 *  @param key
 *  @param defaultValue
 *
 *  @return
 */
+(double)getDoubleByKey:(NSString *)key defaultValue:(double)defaultValue;

/**
 *  保存字符串值
 *
 *  @param key
 *  @param value
 *
 *  @return
 */
+(BOOL)putStringByKey:(NSString *)key value:(NSString *)value;

/**
 *  保存布朗值
 *
 *  @param key
 *  @param value
 *
 *  @return
 */
+(BOOL)putBoolByKey:(NSString *)key value:(BOOL)value;

/**
 *  保存整形值
 *
 *  @param key
 *  @param value
 *
 *  @return
 */
+(BOOL)putIntByKey:(NSString *)key value:(int)value;

/**
 *  保存双精度值
 *
 *  @param key
 *  @param value
 *
 *  @return
 */
+(BOOL)putDoubleByKey:(NSString *)key value:(double)value;

/**
 *  获取字典
 *
 *  @param key
 *
 *  @return
 */
+(NSDictionary *)getDictionaryByKey:(NSString *)key;

/**
 *  保存字典
 *
 *  @param key
 *  @param value
 *
 *  @return
 */
+(BOOL)putDictionaryByKey:(NSString *)key value:(NSDictionary *)value;

/**
 *  删除字典
 *
 *  @param key
 *
 *  @return
 */
+(BOOL)deleteDictionaryByKey:(NSString *)key;

@end
